from django.template import loader
from django.http import HttpResponse
from website.multiblog.models import BlogPost

def archive(request):
    posts=BlogPost.objects.all()
    t=loader.get_template('archive.html')
    return HttpResponse(t.render({'posts':posts}))
